package com.nbicc.parent.mapper;

import org.apache.ibatis.annotations.Param;
import java.io.Serializable;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * Created by li on 17/12/22.
 */
public interface BaseMapper<T> {

    Integer insert(T var);

    Integer insertAllColumn(T var);

    Integer insertAll(@Param("vars") Collection vars);

    Integer deleteById(Serializable var1);

    Integer deleteByMap(Map<String, Object> var);


    Integer deleteBatchIds(@Param("coll") Collection<? extends Serializable> var);

    Integer updateById(Object var);

    Integer updateByIdInMap(Map<String,Object> var);

    Integer updateAllColumnById(@Param("et") T var);

    T selectById(Serializable id);

    List<T> selectBatchIds(@Param("coll") Collection<? extends Serializable> var);

    List<T> selectByMap(Map<String, Object> var);

    T selectOne(@Param("ew") T var);

}
